//
//  SubjectChildBtnTableViewCell.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/11/8.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "SubjectChildBtnTableViewCell.h"

@implementation SubjectChildBtnTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setChild:(ContentChild *)child
{
    _child=child;
    
    if (child.isOk) {
        
        self.SelectImageView.image=[UIImage imageNamed:@"Pass"];
        
    }else{
        
        self.SelectImageView.image=[UIImage imageNamed:@"blankSelect"];
    }
    
    self.ContentLabel.text=child.name;

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
